//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Aaron Lewis','Eagles Ballroom','Milwaukee, WI','Wednesday','6/5/2024','8:00 PM','6229511','Aaron-Lewis-6-5-2024'],['Aaron Lewis','EPIC Event Center','Green Bay, WI','Thursday','6/6/2024','7:30 PM','6229576','Aaron-Lewis-6-6-2024'],['Aaron Lewis','Rosemont Theatre','Rosemont, IL','Friday','6/7/2024','8:00 PM','6229583','Aaron-Lewis-6-7-2024'],['Aaron Lewis','Little River Casino Resort','Manistee, MI','Saturday','6/8/2024','8:00 PM','6297710','Aaron-Lewis-6-8-2024'],['Aaron Lewis','The Lerner','Elkhart, IN','Wednesday','6/12/2024','7:00 PM','6229584','Aaron-Lewis-6-12-2024'],['Aaron Lewis','The Factory - Chesterfield','St. Louis, MO','Friday','6/14/2024','8:00 PM','6229585','Aaron-Lewis-6-14-2024'],['Aaron Lewis','Hard Rock Cincinnati Outdoor Arena','Cincinnati, OH','Saturday','6/15/2024','7:30 PM','6229586','Aaron-Lewis-6-15-2024'],['Aaron Lewis','The Obsidian Spirits Amphitheater','Corning, CA','Thursday','6/20/2024','8:00 PM','6230499','Aaron-Lewis-6-20-2024'],['Aaron Lewis','TJ's Corral','Minden, NV','Friday','6/21/2024','8:00 PM','6232639','Aaron-Lewis-6-21-2024'],['Aaron Lewis','TJ's Corral','Minden, NV','Saturday','6/22/2024','8:00 PM','6232601','Aaron-Lewis-6-22-2024']],'"aaron lewis"','https://www.ticketnetwork.com');